package com.neusoft.NEPS.controller; // 请确保包名与你的项目结构一致

import com.neusoft.NEPS.entity.AirQualityLevel;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.TableView;

public class FeedbackController {

    @FXML
    private TableView<AirQualityLevel> qualityTable;

    @FXML
    public void initialize() {
        ObservableList<AirQualityLevel> data = FXCollections.observableArrayList(
                new AirQualityLevel("一", "优", "空气质量令人满意"),
                new AirQualityLevel("二", "良", "空气质量可以接受"),
                new AirQualityLevel("三", "轻度污染", "空气质量不可以接受"),
                new AirQualityLevel("四", "中度污染", "空气质量不可以接受"),
                new AirQualityLevel("五", "重度污染", "空气质量不可以接受"),
                new AirQualityLevel("六", "严重污染", "空气质量不可以接受")
        );

        qualityTable.setItems(data);
    }
}